<div class="breadcrumbwidget">
	<ul class="skins">
        <li><a href="default" class="skin-color default"></a></li>
        <li><a href="orange" class="skin-color orange"></a></li>
        <li>&nbsp;</li>
        <li class="fixed"><a href="" class="skin-layout fixed"></a></li>
        <li class="wide"><a href="" class="skin-layout wide"></a></li>
    </ul><!--skins-->
	<ul class="breadcrumb">
        <li><a href="<?php echo $baseurl?>">Trang chủ</a> <span class="divider">/</span></li>
        <li class="active">Danh sách danh mục</li>
    </ul>
</div><!--breadcrumbwidget-->
<div class="pagetitle">
	<h1>Quản lý danh sách danh mục</h1> <span></span>
</div>
<div class="maincontent">
    <div class="contentinner">    
    

        <div id="dyntable_length" class="dataTables_length  content-dashboard">

        
            <a href="<?php echo $baseurl.'manage/categories/add'?>" class="btn"><i class="icon-plus"></i> Thêm mới</a>
        </div>
    	<table class="table table-bordered">
            <colgroup>
                <col class="con0" />
                <col class="con1" />
                <col class="con0" />
                <col class="con1" />
                <col class="con0" />
            </colgroup>
            <thead>
                <tr>
                	<th class="centeralign" style="width: 5%;"><input type="checkbox" class="checkall" /></th>
                    <!-- <th style="width: 8%;">STT</th> -->
                    <th style="width: 460px;">Tên danh mục</th>
                    <th>Hình ảnh</th>
					<th>Trạng thái</th>
                    <th class="centeralign" style="width: 10%">Tác vụ</th>
                </tr>
            </thead>
            <tbody>
            <?php if(!in_array($data, array(null, '', '0'))):?>
            <?php foreach($data AS $el=>$le):?>
                <tr>
                	<td class="centeralign"><input name="checkboxs[]" id="<?php echo $le->id?>" type="checkbox" value="<?php echo $le->id?>" /></td>
                    <!-- <td>1</td> -->
                    <td><?php echo $le->name?></td>
                   <td><img src="<?php echo $imgbase.$le->image?>" style="height:50px;"/></td>
				   <td><?php echo $fview->getActive($le->active);?></td>
                    <td class="centeralign">
                        <a href="<?php echo $baseurl.'manage/categories/edit/'.$le->id?>" class=""><span class="icon-edit"></span></a>
                        <a href="<?php echo $baseurl.'manage/categories/delete/'.$le->id?>" class="delete-a"><span class="icon-trash"></span></a>   
                    </td>
                </tr>
            <?php endforeach;?>
            <?php endif?>
            </tbody>
        </table>
        <div class="dataTables_info" id="dyntable_info">
			<div class="pagination">
                <?php echo $this->pagination->create_links();?> 
            </div>
        </div>
    </div>
</div>